php forum
php mysql forum
php mysql smarty
 
Page 16 of 21 < 1 2 ... 14 15 16 17 18 20 21 >
Topic Options
#248000 - 07/09/04 04:38 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: mazmanr]
Dragon Slayer Offline
Junior Member

Registered: 07/01/03
Posts: 47
Loc: Philadelphia, PA
Thank You MattyJ!

Top
#248001 - 07/15/04 11:55 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: mazmanr]
ekempter Offline
User

Registered: 10/06/01
Posts: 27
Isn't the lastest and greatest release of this mod supposed be included in the first post. I thought that was the protocol. I am having the same issue where adding sub categories become catagories. Does anyone have the fix?

Top
#248002 - 07/16/04 12:48 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: Daine]
MattyJ Offline
Coder

Registered: 05/11/99
Posts: 788
Loc: Wisconsin
no reason us admins shouldn't see this as well... <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> so, in links_admin.php, change the edit_link function to be the following:<br />
Code:
<br />function edit_link() {<br />    GLOBAL $lid,$dbh,$config;<br />                <br />    $query = "<br />       SELECT *<br />       FROM {$config['tbprefix']}links_links<br />       WHERE lid = '$lid'<br />    ";<br />    $result = $dbh -&gt; do_query($query);<br />    $row = mysql_fetch_assoc($result);<br />    $tCatId = $row['cat_id'];<br />    $query = "<br />	SELECT title<br />	FROM {$config['tbprefix']}links_categories<br />	WHERE cat_id = '{$tCatId}'<br />    ";<br />    $mth = $dbh -&gt; do_query($query);<br />    list($tTitle) = $dbh -&gt; fetch_array($mth); <br />    $dbh -&gt; finish_sth($mth);<br />    $query = "SELECT * FROM {$config['tbprefix']}links_categories WHERE parent_id = 0 ORDER BY title";<br />    $main_cat = $dbh -&gt; do_query($query);<br />    $total_main_cats = mysql_num_rows($main_cat);<br />    $cat_pulldown = "&lt;select size=\"1\" name=\"cat_id\"&gt; \n &lt;option selected value=\"{$tCatId}\"&gt;{$tTitle}&lt;/option&gt; \n";<br />    for ($y= 0; $y &lt; $total_main_cats; $y++) {<br />	$cat_row = mysql_fetch_assoc($main_cat);<br />	$cat_pulldown .= "&lt;option value=\"{$cat_row['cat_id']}\"&gt;&amp;bull;{$cat_row['title']}&lt;/option&gt; \n";<br />	$query = "SELECT * FROM {$config['tbprefix']}links_categories WHERE parent_id = '{$cat_row['cat_id']}' ORDER BY title";<br />	$links_cat = $dbh -&gt; do_query($query);<br />	$total_cats = mysql_num_rows($links_cat);<br />	for ($x= 0; $x &lt; $total_cats; $x++) {<br />		$results = mysql_fetch_assoc($links_cat);<br />		$cat_pulldown .= "&lt;option value=\"$results[cat_id]\"&gt;&amp;nbsp;-{$results['title']}&lt;/option&gt;\n";<br />	}<br />    }<br />    $cat_pulldown .= "&lt;/select&gt;";<br /><br />    print "<br />        &lt;form action=\"links_admin.php?op=process_edit_link\" method=\"POST\"&gt;<br />        &lt;input type=\"hidden\" name=\"lid\" value=\"$lid\"&gt;<br />        &lt;table border=\"0\" cellpadding=\"2\" cellspacing=\"2\"&gt;<br />        &lt;tr&gt;&lt;td align=\"right\"&gt;&lt;b&gt;Select Category:&lt;/b&gt;&lt;/td&gt;<br />        &lt;td&gt;<br />	$cat_pulldown<br />    ";<br />    print "<br />        &lt;/td&gt;<br />        &lt;/tr&gt;<br />        &lt;tr&gt;&lt;td align=\"right\"&gt;&lt;b&gt;URL:&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;input name=\"url\" size=\"40\" value=\"$row[url]\" /&gt;<br />        &lt;/td&gt;&lt;/tr&gt;<br />        &lt;tr&gt;&lt;td align=\"right\"&gt;&lt;b&gt;Title:&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;input name=\"title\" size=\"40\" value=\"$row[title]\" /&gt;<br />        &lt;/td&gt;&lt;/tr&gt;<br />        &lt;tr&gt;&lt;td align=\"right\"&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;textarea name=\"description\" rows=\"3\" cols=\"40\"&gt;$row[description]<br />        &lt;/textarea&gt;&lt;/td&gt;&lt;/tr&gt;<br />        &lt;tr&gt;&lt;td align=\"right\"&gt;&lt;b&gt;Submitted By:&lt;/b&gt;&lt;/td&gt;&lt;td&gt;$row[name]<br />        &lt;/td&gt;&lt;/tr&gt;<br />        &lt;tr&gt;&lt;td align=\"right\"&gt;&lt;b&gt;Email:&lt;/b&gt;&lt;/td&gt;&lt;td&gt;$row[email]<br />        &lt;/td&gt;&lt;/tr&gt;<br />        &lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=\"submit\" name=\"edit_link\" value=\"Edit Resource\" /&gt;<br />        &lt;/td&gt;&lt;/tr&gt;<br />        &lt;/table&gt;<br />        &lt;/form&gt;";<br />}<br />
<br /><br />I think the selected item code could be a little cleaner, but it seems to be working for me... <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />Enjoy!
_________________________
--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/

Top
#248003 - 07/16/04 05:52 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: OWL_pokemon]
ekempter Offline
User

Registered: 10/06/01
Posts: 27
[]ekempter said: <br />Isn't the lastest and greatest release of this mod supposed be included in the first post. I thought that was the protocol. I am having the same issue where adding sub categories become catagories. Does anyone have the fix? [/] <br /> <br />I fixed this in links_admin.php in function add_sub_cat. <br /> <br />Change: <br />$query = "INSERT INTO {$config['tbprefix']}links_categories <br /> (parent_id, title, cat_desc) <br /> VALUES (0, '$title', '$description') <br /> "; <br /> <br />To: <br /> $query = "INSERT INTO {$config['tbprefix']}links_categories <br /> (parent_id, title, cat_desc) <br /> VALUES ('$parent_id', '$title', '$description') <br /> "; <br /> <br />I also found that if you had sub categories but no category description the first sub category was needlessly indented. To resolve this, I added a <br /> to links_show_cat.php <br /> <br />Change: <br /># Make sure we have something to print. <br /> if ($i <= $Numberofcats) { <br /> print " <br /> <td valign=\"top\"><img src=\"{$config['phpurl']}/images/folder-c.gif\" alt=\"\" /> <font size=\"2\"><b><a href=\"links.php?op=List_Links&amp;cat_id={$cats['cat_id']}&amp;parent_id={$cats['parent_id']}&amp;title={$cats['title']}\"><u>{$cats['title']}</u></a></b></font><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"1\">{$cats['cat_desc']}</font> <br /> "; <br /> <br />To: <br /># Make sure we have something to print. <br /> if ($i <= $Numberofcats) { <br /> print " <br /> <td valign=\"top\"><img src=\"{$config['phpurl']}/images/folder-c.gif\" alt=\"\" /> <font size=\"2\"><b><a href=\"links.php?op=List_Links&amp;cat_id={$cats['cat_id']}&amp;parent_id={$cats['parent_id']}&amp;title={$cats['title']}\"><u>{$cats['title']}</u></a></b></font><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"1\">{$cats['cat_desc']}</font><br /> <br /> "; <br /> <br />The email that is sent needs to be changed to use the From e-mail addresss specified within the config settings 'contact email address' field. I didn''t have time to fix this one. <br /> <br />I'm sure that others would appreciate it if the first fix was included in the release. <br /> <br />HTH.

Top
#248004 - 07/16/04 09:24 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: OWL_pokemon]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
Anyone have this problem, links waiting for approval, are approved, but do not show....???
_________________________
- Groupee Moderator
- Custom Web Development
http://www.JCSWebDev.com

Top
#248005 - 07/16/04 09:44 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: chrisX]
MattyJ Offline
Coder

Registered: 05/11/99
Posts: 788
Loc: Wisconsin
did you check the cat_id of the ones you approved?
_________________________
--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/

Top
#248006 - 07/17/04 12:33 AM Re: TLD Bv1.5 Released - Threads Links Directory [Re: OWL_pokemon]
ekempter Offline
User

Registered: 10/06/01
Posts: 27
links_show_cat.php script does not count the links within main categories. The attached script revises this in v 1.5.


Attachments
116862-links_show_cat.zip (34 downloads)


Top
#248007 - 07/17/04 04:18 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: OWL_pokemon]
monkeyra Offline
Junior Member

Registered: 06/28/01
Posts: 363
Loc: uk
hey guys, i get this problem after i've installed it.<br /><br />Warning: main(main.inc.php): failed to open stream: No such file or directory in /home/fordmond/public_html/ubbthreads/links.php on line 52<br /><br />Fatal error: main(): Failed opening required 'main.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fordmond/public_html/ubbthreads/links.php on line 52<br /><br /><br />yep, i have searched these forums, but all i get are sql errors from threadsdev when submitting it, weird.

Top
#248008 - 07/21/04 10:29 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: Luka_dup1]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
Okay got the last prob fixed. Any ideas how to get WOL to show the links sections properly?
_________________________
- Groupee Moderator
- Custom Web Development
http://www.JCSWebDev.com

Top
#248009 - 07/22/04 01:54 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: chrisX]
J.C. Offline
Addict

Registered: 08/11/00
Posts: 1551
*bump*
_________________________
- Groupee Moderator
- Custom Web Development
http://www.JCSWebDev.com

Top
#248010 - 07/23/04 03:19 AM Re: TLD Bv1.5 Released - Threads Links Directory [Re: chrisX]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
What is WOL?

Top
#248011 - 07/23/04 07:39 AM Re: TLD Bv1.5 Released - Threads Links Directory [Re: MercAqua]
MattyJ Offline
Coder

Registered: 05/11/99
Posts: 788
Loc: Wisconsin
it's short for, "Who's Online".
_________________________
--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/

Top
#248012 - 07/23/04 02:09 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: mazmanr]
Pappy Offline
Member

Registered: 11/17/00
Posts: 235
Loc: Germany (US Citizen)
hehe ok thanks <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />

Top
#248013 - 08/01/04 03:46 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: MercAqua]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 806
Loc: Berlin, Germany
I guess its time for a new thread for this add on with an actual file attached to it.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#248014 - 08/01/04 04:24 PM Re: TLD Bv1.5 Released - Threads Links Directory *DELETED* [Re: HostNuke]
ekempter Offline
User

Registered: 10/06/01
Posts: 27
Post deleted by ekempter

Top
#248015 - 08/01/04 05:16 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: OWL_pokemon]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 806
Loc: Berlin, Germany
you can edit the link as Admin by clicking on the green LED button. The red one will delete the link.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#248016 - 08/02/04 02:40 AM Re: TLD Bv1.5 Released - Threads Links Directory [Re: mazmanr]
Calpy Offline
Power User

Registered: 12/17/02
Posts: 71
* Arrgh tables!


Edited by Calpy (08/04/04 05:18 PM)

Top
#248017 - 08/02/04 02:52 AM Re: TLD Bv1.5 Released - Threads Links Directory [Re: Webstrong]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
It looks like you are trying to create tables which already exit.<br />Have you already used this mod? If so you don't need to create the tables, they should already be there.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#248018 - 08/04/04 05:16 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: Daine]
Calpy Offline
Power User

Registered: 12/17/02
Posts: 71
[]http://www.calpernia.com/ubbthreads/images/icons/grnlite.gif[/] <br />* Hi all. Love the idea of this mod, I modded a very simple guestbook script to do something similar in a much less cool way, looking forward to replacing it with this. After several tense hours of struggling to install the five different versions of this script linked in this thread and guess which fixes applied to which version, I got something up and running, but upon trying to add a link I get this message:<br />[] -- Your email address does not appear to be valid. Please check the format and try again[/]<br />* I don't need it to validate email anyway since it's using the email on record for the user, but I suspect the issue is the globals thing that made it impossible to even submit a category until I added that get_input reference to the header. Is there a similar ref I can put into the links_submit to keep these variables from blanking out?<br />* As someone suggested, it would be a good idea to remove the non-working attachments here, at least. This is such a good mod it seems that lots of people want to try and use it.

Top
#248019 - 08/08/04 04:49 PM Re: TLD Bv1.5 Released - Threads Links Directory [Re: Webstrong]
ekempter Offline
User

Registered: 10/06/01
Posts: 27
The links_submit_link script doesn't like caps in email addresses. Like you said, there isn't a reason for it to be validating the email address anyway so I took mine out. <br /> <br />Under: // Check to see if the form was filled out completely <br />Comment out (//) the following - <br />From: if (!valid_email($email)) <br />To: } (right after exit which is approx 4 lines down).


Edited by ekempter (08/08/04 05:11 PM)

Top
Page 16 of 21 < 1 2 ... 14 15 16 17 18 20 21 >


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