php forum
php mysql forum
php mysql smarty
 
Page 3 of 3 < 1 2 3
Topic Options
#255770 - 06/02/04 02:06 AM Re: Unregistered users only see first post and X amount of letters/chrs [Re: darenu]
Deejay_dup1 Offline
Journeyman

Registered: 08/25/02
Posts: 106
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?<br /><br />I want! I want!! <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />

Top
#255771 - 06/03/04 02:53 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: darenu]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
Loc: Los Angeles
ITS BEEN UP AND RUNNING ON MY CELICA SITE SINCE THE DATE OF THIS WRITING..... ive even enhanced it a bit to not show attachments in all other forums for unreg'd users...<br /><br /><br />partial post for unreg'd....<br />http://www.everythingcelica.com/ubbthreads/thread.f_57266_0_collapsed_5__1.html#57266<br /><br /><br />no attached files for unreg'd...<br />http://www.everythingcelica.com/ubbthreads/thread.f_1862391965_13_collapsed_5__1.html#1862391965

Top
#255772 - 06/03/04 02:56 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: VickiSmith]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
Loc: Los Angeles
all the information need to implement this mod into your system is already posted in this thread.... <br /><br />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...<br />http://www.everythingcelica.com/ubbthreads/thread.f_1870020450_0_collapsed_5__1.html#1870020450

Top
#255773 - 06/03/04 05:17 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: VickiSmith]
Deejay_dup1 Offline
Journeyman

Registered: 08/25/02
Posts: 106
Hey, thanks for your post. Sorry to hear about your skate incident... I use to skate for years... (USE to.. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> ) <br /> <br />Well, still would if I still lived in Calgary.. Millennium skatepark was so awesome... <br /> <br />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.... <img src="http://www.ubbdev.com/forum/images/graemlins/frown.gif" alt="" /> <br /> <br />Maybe i will TRY to get it going, but it might take me a while. <br /> <br />And I did just now, notice you have this mod installed into your articles... doh! i was looking in your regular forums posts. <br /> <br /> <br />Deej

Top
#255774 - 06/03/04 06:10 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: darenu]
Deejay_dup1 Offline
Journeyman

Registered: 08/25/02
Posts: 106
Well, i couldn't just wait... hahah So i hacked it myself...<br /><br />Near the end of showflat.php where you did your mods, here is what I placed... This is how it looks in mine now:<br /><br /> // --------------------------<br /> // Are we ignoring this user?<br /> if (stristr($user['U_Ignored'],"-$usernum-")) {<br /> $postrow[$i]['Body'] = $ubbt_lang['IGNORING'];<br /> } else {<br /><br /> //-------------------------------------------<br /> // SHow only to reg users, mods, admins, and supporters<br /><br /> if ( ($user['U_Groups'] == "-5-") || ($user['U_Groups'] == "-6-") || ($user['U_Groups'] == "-7-") || ($user['U_Groups'] == "<br />-8-") || ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") || ($user['U_Status'] == "User") ) {<br /><br /> // Show Entire Message<br /> $postrow[$i]['Body'] = ($Body);<br /> }<br /><br /> // Show Only X Amount of Characters<br /> else {<br /> $postrow[$i]['Body'] = substr($Body,0,250) . "<br><Br><br><b>.... MORE</b><br><Br> To view the rest of this<br /> 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<br />ave an account with us, <a href=\"http://www.atvcanada.ca/login.php\">Login</a> now.";<br /> }<br /><br /> }<br /><br /><br /><br /> // -------------------------------------------------<br /> // Only certain options for users that are logged in<br /><br /><br /><br />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.<br /><br />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...)<br /><br />Deej

Top
#255775 - 06/03/04 06:50 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: VickiSmith]
Deejay_dup1 Offline
Journeyman

Registered: 08/25/02
Posts: 106
[]id242 said:<br />[]DLWebmaestro said:<br />I can't find postrow[$i]['Body'] = $Body; in showthreaded.... or anything else that signifies this. [/]<br /><br />just find...<br />
Code:
// --------------------------------------<br />// Are there any replies to this message?
<br /><br />and place the above code, above it <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />....<br /><br />the string you are looking for, exists in printthreaded.php though.... so install to that should be simple enough [/]<br /><br />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?<br /><br /> <img src="http://www.ubbdev.com/forum/images/graemlins/smashpc.gif" alt="" />

Top
#255776 - 06/03/04 11:22 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: darenu]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
Loc: Los Angeles
i just removed the ability for unreg'd users to print or email posts.... another tiny hack i dreamt up to solve that problem. <br /> <br />check my artciles, no print/email buttons <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> log into an account and you will see them <br /> <br />threaded option is also OUT THE QUESTION for unreg'd...

Top
#255777 - 07/03/04 11:36 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: eslmix]
oceanwest Offline
Enthusiast

Registered: 04/25/02
Posts: 490
Loc: Escondido, CA
Anyone update this w/ instructions for 6.5?
_________________________
FM Forums
Largest Online FileMaker Community
http://www.fmforums.com

Top
#255778 - 07/03/04 11:53 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: sdf123]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
Loc: Los Angeles
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<br /><br />I'd like to make my site slightly more search-engine friendly <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />

Top
#255779 - 01/26/05 11:41 AM Re: Unregistered users only see first post and X amount of letters/chrs [Re: VickiSmith]
oceanwest Offline
Enthusiast

Registered: 04/25/02
Posts: 490
Loc: Escondido, CA
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?
_________________________
FM Forums
Largest Online FileMaker Community
http://www.fmforums.com

Top
#255780 - 03/12/05 11:22 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: VickiSmith]
Tina Offline
User

Registered: 07/22/04
Posts: 45
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...

Top
Page 3 of 3 < 1 2 3



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks