php forum
php mysql forum
php mysql smarty
 
Page 2 of 3 < 1 2 3 >
Topic Options
#255750 - 08/07/03 09:42 AM Re: Unregistered users only see first post and X amount of letters/chrs [Re: VickiSmith]
Happy Birthday DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
You're saying that the option to add a topic notice is there, but that's not how you have the code, correct?<br /><br />Also, should I change 'BodyART' to 'Body' since I'm not using articles?
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#255751 - 08/07/03 09:44 AM Re: Unregistered users only see first post and X amount of letters/chrs [Re: eslmix]
Happy Birthday DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
And of course... this should probably be worked into showthreaded as well. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#255752 - 08/07/03 09:50 AM Re: Unregistered users only see first post and X amount of letters/chrs [Re: eslmix]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
if you are not using articles, just replace "$postrow[$i]['Body'] = ($Body);" with the two larger code snippets i've written above <br /> <br />both code snippets are different... the first one handles TOPICS and the second one does REPLIES <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />Check - "if (!$btopic)" to see the main difference ( ! = NOT.... meaning, NOT TOPIC... aka, is REPLY) <br /> <br />Sorry, Im sure you deal with ALOT of kids on your site and need to explain things in detail - please do not mistake my detail as talking down to you, because it is in no way is that my intention - I too deal with alot of people on my site that requier detailed answers - so It just comes naturaly for me to try to cover all the details in one reply <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#255753 - 08/07/03 09:53 AM Re: Unregistered users only see first post and X amount of letters/chrs [Re: eslmix]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
[]DLWebmaestro said:<br />And of course... this should probably be worked into showthreaded as well. <img src="/forum/images/graemlins/wink.gif" alt="" /> [/]<br /><br />showthreaded and printthread.... the install is all basically the same

Top
#255754 - 08/07/03 09:55 AM Re: Unregistered users only see first post and X amount of letters/chrs [Re: eslmix]
Happy Birthday DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
Here's some better code for the reply notice <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />
Code:
<br />$postrow[$i]['Body'] = "...To view this comment/reply, please &lt;a href=\"{$config['phpurl']}/newuser.php\" /&gt;&lt;U&gt;Register&lt;/U&gt;&lt;/a&gt; for a new account.&lt;BR&gt; Or if you already have an account with us, &lt;a href=\"{$config['phpurl']}/login.php\" /&gt;&lt;U&gt;Login&lt;/U&gt;&lt;/a&gt; now.&lt;/B&gt;";
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#255755 - 08/07/03 10:01 AM Re: Unregistered users only see first post and X amount of letters/chrs [Re: eslmix]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
excellent!

Top
#255756 - 08/07/03 10:07 AM Re: Unregistered users only see first post and X amount of letters/chrs [Re: eslmix]
Happy Birthday DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
And no offense taken. Details are good. <img src="/forum/images/graemlins/grin.gif" alt="" /> I have put this up on my site for now so you can check it out if you want. Some people might prefer that there only be one reply that states there are X amount of replies to this post...to read them...bla bla bla. Of course, this probably requires some difficult coding.
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#255757 - 08/07/03 10:17 AM Re: Unregistered users only see first post and X amount of letters/chrs [Re: eslmix]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
the code for "NUMBER OF REPLIES" can be ripped from the SHOWFLAT.php - and stuck into the first bit of code that was posted above.

Top
#255758 - 08/07/03 10:28 AM Re: Unregistered users only see first post and X amount of letters/chrs [Re: VickiSmith]
Happy Birthday DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
I have added the ability to have it do this for select forums. Just replace A, B, and/or C with the keywords for the forums that you want to limit. You can use as many or as little as you like. Or, if you want to list the forums that you want it to NOT limit, replace == with !=.... I think. <img src="/forum/images/graemlins/grin.gif" alt="" /> <br /> <br />
Code:
 <br />   if ((!$btopic) &amp;&amp; (($Board == 'A') || ($Board == 'B') || $Board == 'C'))) { <br />		if ( ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") || ($user['U_Status'] == "Users") ) { <br />		// Show Entire Message <br />			$postrow[$i]['Body'] = ($Body); <br />		// Replace replies with 'Please Register/Login' text <br />			} else { <br />					$postrow[$i]['Body'] = "To view this comment/reply, please &lt;a href=\"{$config['phpurl']}/newuser.php\" /&gt;&lt;U&gt;Register&lt;/U&gt;&lt;/a&gt; for a new account.&lt;BR&gt; Or if you already have an account with us, &lt;a href=\"{$config['phpurl']}/login.php\" /&gt;&lt;U&gt;Login&lt;/U&gt;&lt;/a&gt; now.&lt;/B&gt;"; <br />			} <br />	} else { <br />	$postrow[$i]['Body'] = ($Body); <br />   } <br />


Edited by DLWebmaestro (08/07/03 10:49 AM)
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#255759 - 08/07/03 10:34 AM Re: Unregistered users only see first post and X amount of letters/chrs [Re: eslmix]
Happy Birthday DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
Okay...I don't think the exclusion list will work...only inclusion.
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#255760 - 08/07/03 10:53 AM Re: Unregistered users only see first post and X amount of letters/chrs [Re: eslmix]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
You could even take things a step further and add the following to your "Config Settings" box at the bottom of the administrator's page...<br />
Code:
$config['articleboards'] =	'ubb15,ubb16,ubb17,ubb18,ubb19,ubb10,feat1,';
<br /><br />and then include "$Board == stristr(",{$config['articleboards']},", ",$Board,") instead of listing each board in the file - rather than having the edit the file each time you add new boards, just add the boards to your admin config options page<br /><br />(my usage of "stristr" should be correct - if not, I think that "SUBST($config['articleboards'])" might also do the trick - i might be getting EXCEL and PHP commands mixed???)

Top
#255761 - 08/07/03 12:01 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: VickiSmith]
Happy Birthday DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
There may be a slight misspelling in the mod code. My user group is 'User', not 'Users'. I am pretty sure this is the default. I was getting PMs left and right from users saying they were getting the register posts.
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#255762 - 08/07/03 12:06 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: VickiSmith]
Happy Birthday DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
I can't find postrow[$i]['Body'] = $Body; in showthreaded.... or anything else that signifies this.
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#255763 - 08/07/03 12:51 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: eslmix]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
[]DLWebmaestro said: <br />There may be a slight misspelling in the mod code. My user group is 'User', not 'Users'. I am pretty sure this is the default. I was getting PMs left and right from users saying they were getting the register posts. [/] <br /> <br />intresting.... because I got the exact same response from my users for the past few hours, as you had - but I looked in my DB and thought this was correct (I guess I should have looked at the actual code, rather than whats displayed in the DB <img src="/forum/images/graemlins/grin.gif" alt="" /> .... this looks like a confusing bug from infopop in the 6.2x version of threads?) <br /> <br />Good find! - I just switched "Users" to "User" and things work like how they should!


Attachments
91100-screen.jpg (27 downloads)


Top
#255764 - 08/07/03 12:54 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: VickiSmith]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
yes - U_Groups and User U_Status are entirely different things. The status is used for access to admin/moderator only stuff... and groups are used for forum access.... read/write permissions and such.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#255765 - 08/07/03 01:00 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: eslmix]
id242_dup1 Offline
Member

Registered: 05/23/03
Posts: 159
[]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

Top
#255766 - 08/07/03 01:03 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
[]JoshPet said:<br />yes - U_Groups and User U_Status are entirely different things. The status is used for access to admin/moderator only stuff... and groups are used for forum access.... read/write permissions and such. [/]<br /><br />does my statement of "my php skills are lacking" in the topic post, count as a disclaimer <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Thanks Josh!!

Top
#255767 - 08/07/03 01:11 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: VickiSmith]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
LOL<br /><br />No you are doing great! <img src="/forum/images/graemlins/smile.gif" alt="" /> Really - this is the best way to learn. And I definately see your confusion there. But you have tackled and accomplished something cool. Next thing you know you'll be a major hacker here. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#255768 - 08/07/03 02:52 PM Re: Unregistered users only see first post and X amount of letters/chrs [Re: Daine]
Happy Birthday DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
I'm not a major hacker yet. But with this post, I'm officially a Hacker. <img src="/forum/images/graemlins/grin.gif" alt="" />
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#255769 - 06/01/04 02:25 AM Re: Unregistered users only see first post and X amount of letters/chrs [Re: eslmix]
Deejay_dup1 Offline
Journeyman

Registered: 08/25/02
Posts: 106
Just wondering if you have had time to write this up as a official mod??? I am VERY interested in getting this going on my site... I have tons of guest users, that I wish would register.<br /><br />I tried to read through this thread, but seems a lot of hacking, and its a bit rough to follow.<br /><br />Can we get a step by step mod done up? That would be awesome. You are right in your first post... There are a lot of users who would like this mod! Its exactly what I was looking for.

Top
Page 2 of 3 < 1 2 3 >


Who's Online
0 registered (), 26 Guests and 12 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