SMF Links

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

Previous topic - Next topic

MiY4Gi

Will it require a lot of coding if I wanted the change the rating feature so that it refers to categories and not links? What about changing the rating feature so that it uses 10 stars instead? You can just tell me if it's going to be a lot of work or if it's easy, and which files I'll need to edit, then I'll take it from there and have a go at it.

I decided to use this mod as my Downloads Directory mod since it's ideal for multiple downloads at the same time. All the other mods only allow one download at a time. Also, I like the simple layout, although I've got some issues with the column widths. Do you perhaps know how I can go about adjusting the column widths?

Also, where do I place the code to center the directory headings and file info in the columns? I've tried CSS alignment, but my Options column disappears whenever I do it.
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

vbgamer45

Going to take some work. Ratings are tied each download.

Did you see my Downloads mod? Free version could be easier to convert maybe.
I am also have paid version which supports multiple files in a download
Community Suite for SMF - Grow your forum with 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

MiY4Gi

Mm, I'm rather short on cash. I've got quite a few mods that I want to buy, but I figured I'll first focus on ones I can afford (i.e. free ones) and then once I got money, I'll start spending. So you say your paid mod supports multiple downloads? I'll give it some thought. But in the meantime I'm gonna have a look at the mods code and see if I can wrap my mind around it. I which file would I find the code for the ratings? Yeah, I saw your mod, as well as the smfpacks one, and both are a little too much. Basically I just want a dedicated download section with url obfuscation, a simple tidy interface, the ability to download lots of files very quickly by listing them all on the same page, and the ability to rate "downloads" which in my case is the category that contains the downloads. Also, 2 days ago I figured out how to direct link to mediafire using some PHP code, so I'm eager to try it out. Once I implement it, it will look like I'm hosting the files myself. Yeah I know, it's not really a good thing since mediafire gets their money from ads, so what I'll be doing is almost like stealing. But yeah, I'm eager to try it out. I'm also seeing if I can adapt the php code to other hosts like 4shared and Zippyshare.
Check out my new website, MyAnimeClub.net. I plan to create the largest anime community, and most fun and user-friendly anime forum in the world. It's still in the development stage though.

SoLoGHoST

@MiY4Gi - You can grab anything from any page using the built-in PHP 5 DOMDocument Class

The following is an example of grabbing just the element (and all contents within it) with the id attribute of "anything" from any other site...

$doc = new DomDocument;

// We need to validate our document before refering to the id
$doc->validateOnParse = true;
$doc->loadHtml(file_get_contents('{URL IS HERE}'));
$content = $doc->getElementById('anything');

echo $doc->SaveHTML($content);


Just change {URL IS HERE} to the actual url to grab the element with the id of "anything" to the actual URL.  Change anything to the actual ID of the element you wish to grab that exists at that url.

Stanyy

Hi all. I desperately would like to display the links from this mod in a new page in my forum. I created a new page using custom actions and would like to display links from this mod in it. Please it's urgent, I would be grateful to anyone willing to help.

@SoloGhost, would your grabber work in this case? If it would, can you write the exact code to use for this? Thanks.

vbgamer45

It would need to be a php page and you would need to query the smf_links table to get the links.
Community Suite for SMF - Grow your forum with 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

Stanyy

Yeah it's a php page. Could you provide the code for me, i'm not very knowledgeable in this kind of stuff. Thanks.

Stanyy

Could you provide more details at least? How do I query the smf_links table?

I can reproduce any of the source files and call it on the new page. I just don't know which file would be required. I really need help on this.

littlenicki

Hello,

I just installed this mod and it went through without problems. However I now get this error when wanting to add a category:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3
File: /home/public_html/smf/Sources/Links.php
Line: 315


Any help is greatly appreciated. Thank you!
Fomer SMF user. Switched to Invision Power Board and VBulletin

vbgamer45

Community Suite for SMF - Grow your forum with 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

littlenicki

Yes, I am using MySql.

Any advice on what I should do?

Thank you
Fomer SMF user. Switched to Invision Power Board and VBulletin

Stanyy

Quote from: vbgamer45 on July 01, 2013, 08:19:26 PM
Are you using MySQL?
Are you going to provide assistance or do I uninstall this mod as I do not have any other use of it?

If I can't display those links where I want them, then this mod would become useless to me.

vbgamer45

Sorry I do not have the time to do it. Unless you want to do a paid job.
Community Suite for SMF - Grow your forum with 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

SoLoGHoST

Quote from: Stanyy on June 24, 2013, 05:04:24 AM
Hi all. I desperately would like to display the links from this mod in a new page in my forum. I created a new page using custom actions and would like to display links from this mod in it. Please it's urgent, I would be grateful to anyone willing to help.

@SoloGhost, would your grabber work in this case? If it would, can you write the exact code to use for this? Thanks.

Yes, it would work.  And you wouldn't have to worry about coding any database queries and/or all php code that is involved with permissions, since this is already coded on the SMF links page.  Like I said, you just replace with the URL where your SMF Links are, and than you can do a view source on the page to see the link and grab the ID from where these links are stored in.  In your situation, since the id is coming from a page that you host, it's sort of like stealing bandwidth from yourself.

If you don't know how to do this, just reply with the url of where your SMF Links exist.  I'll modify the DomDocument code I posted for you so that you can put it on any page and output those links.

Stanyy

Hello SoloGhost, I am very happy to see a reply from you. I will send you the link to you via pm.

Would it be possible to re-style the links? as I would like to display them in my mobile site.
Also would links I add in future appear in the grabber?

SoLoGHoST

You can use basic css or even jQuery/javascript to restyle the links however you want.  If you are grabbing from an id attribute that wraps all of the links within it, than yes, any links you add in the future will automatically be grabbed.

You can even use jQuery/javascript to grab only the links if need be, and put them inside of any element and destroy the table element also.  Or you could just use the DomDocument to just grab links (i.e. a tags within an id attribute).

oridyne

Hi,

I know I may be about to ask a stupid question but here goes anyway:

I am currently running an older version of this Mod, can I just install the newer version over the top or do I have to uninstall the older version first?

SMF Version is: 1.1.18

The problem being I get the following message when I try that:

Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Uninstall Actions
Installing this package will perform the following actions:
1.Execute Modification./Themes/default/languages/Modifications.english.php Test successful
2.Execute Modification./Themes/default/languages/Modifications.english-utf8.php Test successful
3.Execute Modification./Themes/default/languages/Who.english.php Test successful
4.Execute Modification./index.php Test successful
5.Execute Modification./Themes/default/index.template.php Test successful
6.Execute Modification./Sources/ManagePermissions.php Test failed
7.Execute Modification./Sources/Subs.php Test failed
<*> I'm dangerous when I know what I'm doing <*>

Big Bang Burger Bar

vbgamer45

You can just install the newer version on top of the old version.
Community Suite for SMF - Grow your forum with 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

oridyne


Quote from: vbgamer45 on September 01, 2013, 11:30:47 AM
You can just install the newer version on top of the old version.

Just tried that and whilst it reported no errors I now get the following errors in my Error log:

http://www.mydomain.co.uk/Forum/index.php?action=links;sa=admincat
Apply Filter: Only show the errors with the same message
8: Undefined index: session_var
File: /HOME_DIR_PATH/Forum/Themes/default/Admin.template.php (manage_cats sub template - eval?)
Line: 980

any ideas?



Thanks
<*> I'm dangerous when I know what I'm doing <*>

Big Bang Burger Bar

oridyne


Also these errors when I go to the links page:


8: Undefined index: session_var
File: /HOME_DIR_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 79




http://www.bigbangburgerbar.co.uk/Forum/index.php?action=links;cat=7
2: Invalid argument supplied for foreach()
File: /HOME_DIR_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 324


http://www.bigbangburgerbar.co.uk/Forum/index.php?action=links;cat=7
8: Undefined index: links_cat_list
File: /HOME_DIR_PATH/Forum/Themes/default/languages/Admin.english.php (mainview sub template - eval?)
Line: 324

<*> I'm dangerous when I know what I'm doing <*>

Big Bang Burger Bar

Advertisement: