|
Joined: Aug 2002
Posts: 100
Journeyman
|
Journeyman
Joined: Aug 2002
Posts: 100 |
Ive checked both the celica and the drum sites, and didnt see this mod in action. Did you guys get it going live on your sites yet? I want! I want!! 
|
|
|
|
Joined: Jul 2001
Posts: 1,157 Likes: 82
coffee and code
|
coffee and code
Joined: Jul 2001
Posts: 1,157 Likes: 82 |
all the information need to implement this mod into your system is already posted in this thread.... I'm still trying to recover from a "look at me, I'm tony hawk" skateboard accident - so i wont be writing a detailed guide with this information anytime soon... http://www.celicahobby.com/ubbthreads/thread.f_1870020450_0_collapsed_5__1.html#1870020450
|
|
|
|
Joined: Aug 2002
Posts: 100
Journeyman
|
Journeyman
Joined: Aug 2002
Posts: 100 |
Hey, thanks for your post. Sorry to hear about your skate incident... I use to skate for years... (USE to..  ) Well, still would if I still lived in Calgary.. Millennium skatepark was so awesome... Anyways, back on topic... Thanks again for the update. I tried to follow and read through this topic, and there is too much things back and forth here for me to weed through, so I guess I would be outta luck.... Maybe i will TRY to get it going, but it might take me a while. And I did just now, notice you have this mod installed into your articles... doh! i was looking in your regular forums posts. Deej
|
|
|
|
Joined: Aug 2002
Posts: 100
Journeyman
|
Journeyman
Joined: Aug 2002
Posts: 100 |
Well, i couldn't just wait... hahah So i hacked it myself...
Near the end of showflat.php where you did your mods, here is what I placed... This is how it looks in mine now:
// -------------------------- // Are we ignoring this user? if (stristr($user['U_Ignored'],"-$usernum-")) { $postrow[$i]['Body'] = $ubbt_lang['IGNORING']; } else {
//------------------------------------------- // SHow only to reg users, mods, admins, and supporters
if ( ($user['U_Groups'] == "-5-") || ($user['U_Groups'] == "-6-") || ($user['U_Groups'] == "-7-") || ($user['U_Groups'] == " -8-") || ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") || ($user['U_Status'] == "User") ) {
// Show Entire Message $postrow[$i]['Body'] = ($Body); }
// Show Only X Amount of Characters else { $postrow[$i]['Body'] = substr($Body,0,250) . "<br><Br><br><b>.... MORE</b><br><Br> To view the rest of this post, please <a href="http://www.atvcanada.ca/newuser.php">click here to register for a FREE account.</a><br><Br>If you already h ave an account with us, <a href="http://www.atvcanada.ca/login.php">Login</a> now."; }
}
// ------------------------------------------------- // Only certain options for users that are logged in
Since I am not using articles, I just used it stock... The groups shown are my supporting groups, and I had to change "Users" to "User" for it to work on my board's reg'd users.
Now all un-reged users will see the register message when they read ANY posts on my site... Mission accomplished... (Well, almost... Just have to mod showthreaded...)
Deej
|
|
|
|
Joined: Aug 2002
Posts: 100
Journeyman
|
Journeyman
Joined: Aug 2002
Posts: 100 |
[] id242 said:[] DLWebmaestro said:I can't find postrow[$i]['Body'] = $Body; in showthreaded.... or anything else that signifies this. [/] just find... // --------------------------------------<br />// Are there any replies to this message? and place the above code, above it <img src="/forum/images/graemlins/smile.gif" alt="" /> .... the string you are looking for, exists in printthreaded.php though.... so install to that should be simple enough [/] I had the same problem, so i tried hacking in the code I mentioned in my last post... The stuff I put in showflat.php... And it didnt work right in printthread.php or anywhere in showthreaded.php that I tried? 
|
|
|
|
Joined: Jul 2001
Posts: 1,157 Likes: 82
coffee and code
|
coffee and code
Joined: Jul 2001
Posts: 1,157 Likes: 82 |
i just removed the ability for unreg'd users to print or email posts.... another tiny hack i dreamt up to solve that problem. check my artciles, no print/email buttons  log into an account and you will see them threaded option is also OUT THE QUESTION for unreg'd...
|
|
|
|
Joined: Apr 2002
Posts: 474
Enthusiast
|
Enthusiast
Joined: Apr 2002
Posts: 474 |
Anyone update this w/ instructions for 6.5?
|
|
|
|
Joined: Jul 2001
Posts: 1,157 Likes: 82
coffee and code
|
coffee and code
Joined: Jul 2001
Posts: 1,157 Likes: 82 |
I'm actually working on a different approach for this - unreg'd uses will see full texts, but no inline images or links/linked images I'd like to make my site slightly more search-engine friendly 
|
|
|
|
Joined: Apr 2002
Posts: 474
Enthusiast
|
Enthusiast
Joined: Apr 2002
Posts: 474 |
This has been working for me.. what if I want to instead show the entire first post but any replies would be be restricted and invite registration?
|
|
|
|
Joined: Jul 2004
Posts: 43
User
|
User
Joined: Jul 2004
Posts: 43 |
Wonderful Mod... is this now official and can this be used with 6.5.1?
Helping the lost & lonely one sweet soul at a time...
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 254
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|