News:

Join the Facebook Fan Page.

Main Menu

SMF Links

Started by SMFHacks.com Team, July 12, 2006, 12:33:28 AM

Previous topic - Next topic

vbgamer45

Added support for Guest Links approval. Under approval now show Guest as the membername and you can approve the link.

Also added RC3 support as well if you haven't noticed.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

snork13

Quote from: vbgamer45 on August 21, 2006, 07:47:57 PM
Added support for Guest Links approval. Under approval now show Guest as the membername and you can approve the link.

Also added RC3 support as well if you haven't noticed.
Nice :D
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

ametzler

How would I make it so unlimited words could be used in the site description?  Right now it cuts it off after a couple sentences.  Thanks!!

Adam

ametzler

I figured it out but just to make sure that I won't affect anything else.  I changed the number value for the description in the MySQL database to a large number.  Is that the proper way to do it or will it have some negative affects soemwhere else form doing it that way?

Adam

xBoXlOvEr

Hello. I have done some modifications to this mod, so now the people who runs spanish_es language pack, can use this mod. I have translated too all the stuff so all the words are now in spanish language.

I hope you like it.

Best Regards.

http://www.megaupload.com/?d=OYHEAC0Z (I dont know how to attach files here  ::))

URPG

I could realy use something like this for TinyPortal! Can you make a TP compatible package that will add a menu button to TP?

rockinaway

I hear that there may be a link manager in TP next version, not sure what it will be like but it is planned..
Have I helped you? Then please join AdminFuel - The forum for forum administrators.

If you need help managing your forum, or maybe launching it, then visit us and view the quality articles, downloads and posts.

URPG

Well, 0.95 was just released to the public, could take month for the final version...

Merlin42

Hi.

Nice mod. I've fixed all the hardcoded english phrases to german, but Umlaute (äöüß) within the title or description wont work (displaying trash, äöü = äöü).

imho this ist a displaying problem and the Links.template.php needs to be fixed (the database "output" needs to be converted or something like that)

Can anyone please help?

I'm running RC3 german (german, NOT german-utf8)

vbgamer45

Quote from: Merlin42 on September 24, 2006, 07:55:10 AM
Hi.

Nice mod. I've fixed all the hardcoded english phrases to german, but Umlaute (äöüß) within the title or description wont work (displaying trash, äöü = äöü).

imho this ist a displaying problem and the Links.template.php needs to be fixed (the database "output" needs to be converted or something like that)

Can anyone please help?

I'm running RC3 german (german, NOT german-utf8)
I plan on updating this mod once I get some time and will change to language files.
As for database output I am not sure can you find out what it is causing that? and how to fix it.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Gobo

hi vbGamer

I was reading the code for the Links Template in the hopes of "redesigning" the template and I noticed that you have used the copyright notice in full in many places.

I just wanted to make a recommendation that you could store the whole copyright code in a variable like this:


$linkscopyright = //Copryright keep it please. Helps support the mod making for SMF
<br /><div align="center"><a href="http://www.smfhacks.com" target="blank">SMF Links</a>';


and then u could easily out put it wherever you wanted by simply calling the variable $linkscopyright

I dont know veyr much PHP but I have seen this being done in many of Bloc's themes where he calls a whole block of code using variables and so it reduces the code and thus also the file size - Just a suggestion, hope u dont mind me giving it :)

------------------------------------------------

Also could it be possible to have different template styles for this mod please?

I've been trying and reading the code but I keep getting lost lol and end up doing something wrong. But I will keep trying, hope u will also consider the template styles suggestion, since it will GREATLY enhance this mod in my opinion

aku

vbgamer45

The reason I didn't put the copyright in one location is that I did not want it to be easly removed.

I plan on changing the main look of the links system in the next release.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Gobo

#72
Thanks - looking forward to that one :D

I've managed to redesign a small aspect of the template for my forum:
http://path-to-peace.net/forum/index.php?action=links

it picks up the icons by cat number all i did wa change the table layout and define an image tag for each cat. The code I used was this:


echo '<b>Categories:</b><br />';
while($row = mysql_fetch_assoc($dbresult))
{
  $dbresult2 = db_query("SELECT title FROM {$db_prefix}links WHERE ID_CAT = ". $row['ID_CAT'] . ' AND approved = 1', __FILE__, __LINE__);
$totallinks = db_affected_rows();
if(function_exists('parse_bbc'))
{
echo '<table border="1" width="100%" id="table1" style="border-collapse: collapse">
<tr>
<td rowspan="2"><a href="' . $scripturl . '?action=links;cat=' . $row['ID_CAT'] . '"><img src="http://yoursite.com/links_images/' . $row['ID_CAT'] . '.gif" border=0></a></td>
<td><a href="' . $scripturl . '?action=links;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></td>
<td>Sites: ' . $totallinks . '</td>
</tr>
<tr>
<td colspan="2">' . nl2br(parse_bbc($row['description'])) . '</td>
</tr>
</table>';
}
else
{
echo '<table border="1" width="100%" id="table1" style="border-collapse: collapse">
<tr>
<td rowspan="2"><a href="' . $scripturl . '?action=links;cat=' . $row['ID_CAT'] . '"><img src="http://yoursite.com/links_images/' . $row['ID_CAT'] . '.gif" border=0></a></td>
<td><a href="' . $scripturl . '?action=links;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></td>
<td>Sites: ' . $totallinks . '</td>
</tr>
<tr>
<td colspan="2">' . nl2br(parse_bbc($row['description'])) . '</td>
</tr>
</table>';

}


The part which needs to be changed for people who want to use this will be: yoursite.com/links_images/

make a folder called links_images and inside it place the gifs according to link category numbers like 1.gif, 2.gif 3.gif, etc etc - they will automatically appear in front of the related category.

The above code must be plased instead of this: (i.e. find this and replace with above code)


echo '<b>Categories:</b><br />';
while($row = mysql_fetch_assoc($dbresult))
{
  $dbresult2 = db_query("SELECT title FROM {$db_prefix}links WHERE ID_CAT = ". $row['ID_CAT'] . ' AND approved = 1', __FILE__, __LINE__);
$totallinks = db_affected_rows();
if(function_exists('parse_bbc'))
{
echo '<div class="tborder" style="margin: 2%;"><div class="catbg2"><a href="' . $scripturl . '?action=links;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a> - Total Links: ' . $totallinks . '</div>';

echo '<div class="windowbg2">' . nl2br(parse_bbc($row['description'])) . '<br />';
}
else
{
echo '<div class="tborder" style="margin: 2%;"><div class="catbg2"><a href="' . $scripturl . '?action=links;cat=' . $row['ID_CAT'] . '">' . doUBBC($row['title']) . '</a> - Total Links: ' . $totallinks . '</div>';

echo '<div class="windowbg2">' . nl2br(doUBBC($row['description'])) . '<br />';

}


The table layout can be changed to suit your need - but the user will need to have basic html knowledge to make the change :)

PS: I am going to try and echo out a 2 column layout - but I dont know how yet - i know i have to include a "for each" loop in there somewhere but I dont know how yet. So if u have an idea please let me know

Adamzon

i have problems with rights, Admin can use it, but not standardusers

Tips


vbgamer45

Quote from: Adamzon on November 06, 2006, 04:10:21 PM
i have problems with rights, Admin can use it, but not standardusers

Tips


Check Permissions make sure they have the permissions that you desire
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Adamzon

I get crasy over this admin-rights thing..
Can u walk me throu it?

/A

vbgamer45

Goto permissions in your admin section.

Click on the group you want to edit. For example regular members.
Check the links Permissions that you want them to have.
I attached a screenshot.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

AndrewD

I am using the Amber theme and the I'd like to make the 'HOME' link go to the actual home page of the site as opposed to the forum home page.   Can someone tell me how and where to make this change? 
Thank you,

AndrewD
[email protected]

rockinaway

Has that got anything to do with this MOD?
Have I helped you? Then please join AdminFuel - The forum for forum administrators.

If you need help managing your forum, or maybe launching it, then visit us and view the quality articles, downloads and posts.

AndrewD

I don't know.   What is "this" mod anyway.   Sorry if I interupted your tea party, but where else would I ask a question like that.   I don't have priviledges to start my own topic.  I thought someone could help.  SMF links sounds like a topic that would apply to my question.

Advertisement: