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
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
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
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
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


Who's Online
0 registered (), 21 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks