 | Re: Can anyone help me with some tpl code ? |  |
Posted: 05/01/2010 2:29 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:36 PM
Location: St Pete, FL
|

|
|
|
|
 |
What does the home.php file look like? That is the file listed in the path for your category and subcategory code...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Can anyone help me with some tpl code ? |  |
Posted: 05/01/2010 2:36 AM |
|
|
|
|
|
| Dove |
| Posts |
79 |
| Word Cnt. |
6,418 |
| BDay |
N/A |
| Sign |
N/A |
| Sex |
 |
|
|
|
Joined: Jun 11, 2007
Local time: 6:36 AM
Location: Normally off the planet.
|

|
|
|
|
 |
| I put it in the zip and reuploaded. |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Can anyone help me with some tpl code ? |  |
Posted: 05/01/2010 2:46 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:36 PM
Location: St Pete, FL
|

|
|
|
|
 |
What does the products.php file look like? When you click on the category or subcategory link, this is the code that is called in the home.php file:
| Code:
|
if (!empty($cat))
include "./products.php";
|
The products.php file is probably where all the work is done...
Why would you want to hardcode these links rather than just use the code as it is designed? Wouldn't it be easier to put your links in your database rather than modify the code???
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Can anyone help me with some tpl code ? |  |
Posted: 05/01/2010 3:02 AM |
|
|
|
|
|
| Dove |
| Posts |
79 |
| Word Cnt. |
6,418 |
| BDay |
N/A |
| Sign |
N/A |
| Sex |
 |
|
|
|
Joined: Jun 11, 2007
Local time: 6:36 AM
Location: Normally off the planet.
|

|
|
|
|
 |
No, because that means adding a database table, and then a whole new admin screen to enter the information. That what the people who wrote this wanted to do initially and charge me a lot to do it.
It doesnt need to be fancy, just work. And since its custom for one specific site, it doesnt have to be easily changeable.
Essentially, I dont need anything as complex as stuff added into the database. I just want to hardcode some links into a box that looks like it belongs there.
Its actually subverting the original process, to get outside webpages displaying within the shopping cart structure.
For example, the result would allow you to run this forum from within a shopping cart structure and have donation buttons and stuff in the shopping cart showing after the forum box ends, and in the most purchased box.
I do this off my existing site, using the provider feature, but to clone my site for the project I'm on now is too expensive, so I want to "hotwire" the same effect into the cheaper product. The existing site was heavily modified for a different purpose than the one I'm trying to do now. It also had a substantially bigger budget. I was planning to use a clone of the existing site, but the license fee is too big for the budget.  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Can anyone help me with some tpl code ? |  |
Posted: 05/01/2010 2:13 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:36 PM
Location: St Pete, FL
|

|
|
|
|
 |
I will still need to see the products.php file. I can tell you how to strip the functionality that populates the categories and subcategories and hardcode your own links. But you would probably lose the dynamics of the page without understanding how it works. Hopefully the answer in how this code functions is in the products.php file...
I imagine that you could change the logic to use javascript too. I am not a javascript expert though so it may be a challenge figuring out how to get the javascript code to work the way it does now...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Can anyone help me with some tpl code ? |  |
Posted: 05/01/2010 5:59 PM |
|
|
|
|
|
| Dove |
| Posts |
79 |
| Word Cnt. |
6,418 |
| BDay |
N/A |
| Sign |
N/A |
| Sex |
 |
|
|
|
Joined: Jun 11, 2007
Local time: 6:36 AM
Location: Normally off the planet.
|

|
|
|
|
 |
| Updated the zip. Re download. |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Can anyone help me with some tpl code ? |  |
Posted: 05/01/2010 8:58 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 4:36 PM
Location: St Pete, FL
|

|
|
|
|
 |
How big is the entire program? Could you provide an archive of all of the program files? The next file I need to look at is the search.php file and who knows where that will lead. So if I had all the code, I wouldn't have to keep requesting files from you...
This program includes something called Smarty, which is included in another program that I've looked at recently. I never did figure out how to follow the Smarty code...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
Welcome to RCF - WHF Forum Index
-> Talk PC
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
All times are GMT - 5 Hours Goto page: Previous 1, 2 Page 2 of 2
Add To Bookmarks
|
|
|
|
|