PDA

View Full Version : variable content puller


seothatworks
07-02-2005, 03:31 PM
Sorry for the bad topic/mod name, but couldn't think of any better.

What I am looking for is a simple mod that will find out the no. of the category that's being viewed at the moment, and display one of the ten possible contents/texts/html codes, whatever. If the no. of category would end with 2, it would display text no. 2, if ending with 3 it would display string no. 3 and so on. You would than just insert a tag into the template.

I have been able to do it myself with another software, despite being non-programmer, but that was easy one, like five lines of code . I would still probably attempt on it during coming days if no one else will give it a try, but I guess for someone acquanted with moding PHPLD, it could be an easy one.

David
07-03-2005, 05:29 PM
I'm in agreement with you that it would be very easy. We just need a table with id and text. If you can get us that far (ex. 10 articles), I'll get Igonza to do the rest for us as a quick hack (not a full featured mod).

Oh, and wouldn't it be cool to integrate with this one?!
http://www.mj99.com/scripts/ezarticles.php 8)

seothatworks
07-03-2005, 08:32 PM
Just sent an sql dump with 10 articles about directories via PM. Hopefully it will be useful, and will work...

Of course integration with ezarticles or something like that would be a great idea. I used few of them at one site, worrying about duplicate content penalties etc., but it was rather succcesful attempt.

Btw. now I see my last two "mod requests" are almost similar. Perhaps that quick hack could work two ways, or there could be two quick hacks, one would pull out the content with ID the same as is the category ID, the other one would pull out content with same number as is the last one number of the category.

But I guess that would be easily modifiable afterwards anyway.

I did such a quick hack with a forum board, it had a plugin system, so all that was necessary was to let it know about new plugin, and that plugin was just a simple function that retrieved topic number, and returned back the content, directly to the template.

If Igonza would do it, that would be great, I gues it would take me like two or three hours myself, with an unsure outcome.

David
07-03-2005, 11:34 PM
Sure, I'll see what can be done next time I talk to him.

seothatworks
07-09-2005, 10:13 AM
I have now done something similar, through template.

{url removed because it is no longer active}

More in the mods forum.