How to Modify Login Block to make 'Create New User Account' link redirect to page other than user/register in Drupal 6.x - drupal-theming

I would like to have my (Create New Account) redirect to a page other than registration page. I found a workaround in which one inserts a simple code into the template.php file. This works very well if the theme is Garland or alike. The problem with me is: I am using Ad-novus theme in which I could not find the template.php file where I should have inserted the solver code. Can anyone please help with this by telling me whether there is an alternative file that I can use instead of the template.php. Thanks

You just have to create a template.php file and paste that simple code. That's all :-)
Drupal theme engine system will load that file automatically and load your code snippet. And remember to flush cache if it don't work [1]
[1] /admin/settings/performance

Related

Need help on a minimal module for prestashop 1.7.x

I would like to write a module for prestashop 1.7.x for the first time !
It would be nice if someone could give me a hint how to start up.
I would like to use a php function with smarty call like {$page.page_name|test}
Hi #Hardy Thiergart and welcome to SO!
You can easily write your first PrestaShop module by following the tutorial here:
https://devdocs.prestashop.com/1.7/modules/creation/
Main steps:
Create a folder with your module's name
Create a PHP file with the same name
Make sure your PHP file contains at least the __construct(), install(), uninstall() and getContent() methods (the last one is required only if you allow users to 'Configure' this module)
You can then add additional methods for Hooks, including calls to your template files
Once ready, create a zip file of this folder, with your module's name
I hope this helps.
Here is a link to generate an empty Prestashop module with hooks, etc ... : https://validator.prestashop.com/auth/login
Regards

Oracle APEX: File not loading into apex_application_temp_files

I have an application in APEX (Oracle Application Express 5.0.0.00.31) and I would like to make the file upload on one page. This is what I currently have:
This is a simple file browser item and a button with action: "Submit page".
My File browser according to new features of APEX 5 should store it's uploaded files (once the page is submitted) in the table apex_application_temp_files and purge them at the end of session, but nothing is ever there.
Can anyone explain what am I doing wrong?
Edit:
This is what I have in the apex_application_temp_files just after the upload:
As suggested here: issue with apex_application_temp_files
Use some debug as a sanity check.
Don't try to query the view from sqldeveloper, it won't give you the results you require as it won't work without some contexts set (or without a session). Since sqldev. This is why at first looping over the files in the view helps you most, and just crossref it with the value from the file-item. You can then set up the select into statement, debug that, and if working go from there.

Odoo 9 - cannot load custom module

I am brand new to odoo, just installed version 9 and made a module 'aidentest' using
.>>python odoo.py scaffold aidentest addons
That created the aidentest module in the addons folder. Uncommented everything in the autogenerated files
but when I went to check out my 'Hello World' page at
http://localhost:8069/aidentest/aidentest
I got a 404 not found
So I went to apps to try and load my module, but I could not find it.
Does anyone know what I need to do on Odoo 9 to load up and start coding my custom module?
Briefly: You have to activate developer mode by going to Top right menu>about>activate developer mode
I had basically given up, and was mindlessly clicking about when I hit the 'About' link on the generic-whiteguy dropdown. I had to actually stop thinking before I was able to locate the completely senseless place where they put the thing I need.
The About modal window popped up, and in it was an activate the developer mode button
Some things changed immediately, but I still couldn't find my custom module.
Then I walked away, came back and when I returned I had some auto-generated emails (new things had loaded - slowly). Did this mean that maybe my module had also become accessible? I checked, and sure enough, there it was.
ZERO DOCUMENTATION about this
Please check the config file.Then send the last error it has.

Paypal logo in Prestashop checkout

Good evening,
I use PayPal module on my website developped with Prestashop 1.5.5
I would like to modify the logo which appears at the end of the checkout process because it's too large for my theme.
So I removed the file FR_bnr_horizontal_solution_PP_327wx80h.gif in the folder module/paypal/img/logos/ and replaced it with a new image with the same name.
Moreover, nothing change, the previous logo was always active and the correspondaing file FR_bnr_horizontal_solution_PP_327wx80h.gif was re-created in the folder.
What should I do to resolve this issue ? Which file must I modified ?
Thanks in advance.
Samuel
Through browsers developers extension, check which is the image your template is using.
Then change it in modules/paypal/img/logos.
In my case it was the file PT_vertical_solution_PPeCheck.gif, where PT is the code language.

Bigcommerce - Side Cart Total always shows $29.00

I am having some issues with a BigCommerce theme. It is an exact copy of a working theme, but on the new site, the mini basket/cart always shows $29.00 no matter what is in the cart (site is also set up to use £)
The issue lies with %%LNG_SideCartTotalCost%%.
Whats odd is that I checked the language file (via the url) and the text for this variable should be:
"Your sub total is <strong>%s</strong>."
Yet its coming through as:
"Total: <strong>%s</strong>."
I'm unsure who this was changed (the site is a clients, who has had work done by other developers)
How would someone change this language variable in BigCommerce? I was under the impression you could only edit themes, and not code?
So, any thoughts on how to fix this?
Thanks!
I work at Bigcommerce. The file you will need to edit is the sidecartcontents.html file. You are able to customize HTML, CSS, Javascript and JQuery. The only thing you don't have access to is any global variables that require PHP files. As a SaaS platform, we don't provide our clients access to the PHP files.
Turns out is was an issue with the language file. The support staff had to update it.